package com.mohan.config;

import com.mohan.bean.Person;
import com.mohan.bean.TestValue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan("com.mohan.bean")
@PropertySource("classpath:/advance_value_inject.properties")
public class MainConfigOfPropertyValues2 {
    @Bean
    public TestValue testValue() {
        return new TestValue();
    }
    @Bean
    public Person person() {
        return new Person("modaren",18);
    }
}
